package com.example.ruihuada.ui.HomeModule.activity

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.recyclerview.widget.GridLayoutManager
import com.example.ruihuada.R
import com.example.ruihuada.ui.HomeModule.adapter.ShopDetailsAdapter
import com.noober.background.BackgroundLibrary
import kotlinx.android.synthetic.main.activity_shop_select.*

/**
 *
 *  期刊列表
 */
class JournalActivity : AppCompatActivity() {
    val tilteList = mutableListOf(
        "报名活动",
        "秒杀活动",
        "拼团活动",
        "砍价活动",
        "抽奖活动",
        "集字活动"
    )

    override fun onCreate(savedInstanceState: Bundle?) {
        BackgroundLibrary.inject(this)
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_u_news)
        recyclerview_detail.layoutManager = GridLayoutManager(this, 2)
        recyclerview_detail.adapter = ShopDetailsAdapter(tilteList)
    }
}